<style>
    .spin-cont { line-height: 35px; background-color: #ffffff; width: 700px; margin: 0 auto;}
    :focus{outline: none;}
    .billingButton{ border: solid 1px #ccc;height: 24px; width: 50px;letter-spacing: 1px;}
    .buttonStyle{ width: 80px; height: 30px ;letter-spacing: 1px;}
</style>
<div id="main-content">
    <div id="main" class="main">
        <div class="user-hd">
            <h2>未结算明细>>{$page_title}</h2>
        </div>
            <div class="spin-cont">
               <div>影院名称：
                   {$inf.agent_name}
               </div>
                <div><input type="button" value="返回" onclick="goBack()" style="float: right;position: relative;top: -35px;" class="buttonStyle"></div>
                <div>计费方式：{$inf.billing_video_play_type_word}</div>
                <div>幕数：{$inf.buy_hall_count} 幕</div>
                <if condition="$inf['billing_video_play_type'] neq 7">
                 <div>折扣率：<php>echo $inf['discount'] * 100 </php> %</div>
                </if>
                <div>结算时间：
                    {$inf.end_time|date='Y-m-d',###}
                </div>
                <div>未结算金额：<php>echo number_format($inf['price']+$inf['video_play_price_total'],2,'.','')</php> 元</div>
                <div>结算明细：{$inf.formula} </div>
                <if condition="$inf['billing_video_play_type'] NEQ 4">
                        <div>点播明细
                            <form style="float: right" action="{:U('Admin/BillingVideoPlay/noBalance')}" method="get">
                                <input type="hidden" value="{:I('get.agentID')}" name="agentID">

                                <select class="select choseHostName" style="padding: 2px;border: solid 1px #ccc; width: 100px;" name="hostName">
                                    <option value="">全部</option>
                                    <volist name="inf['cinemaType']" id="vo">
                                        <if condition="$_GET['hostName'] eq $vo['cinema_name']">
                                            <option value="{$vo.cinema_name}" selected>{$vo.cinema_name}</option>
                                            <else/>
                                            <option value="{$vo.cinema_name}">{$vo.cinema_name}</option>
                                        </if>
                                    </volist>
                                </select> <input type="submit" value="搜索" class="billingButton">
                            </form>
                        </div>
                        <div>
                            <table>
                                <tr>
                                    <th>影院名称</th>
                                    <th>影片名称</th>
                                    <th>点播时间</th>
                                    <th>点播时长</th>
                                    <th>影片价格（元/部）</th>
                                </tr>
                                <volist name="inf['video_play_list']" id="vo">
                                    <tr>
                                        <td>{$vo.cinema_name}</td>
                                        <td>{$vo.video_name}</td>
                                        <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                                        <td>{$vo.play_time}</td>
                                        <td>{$vo.billing_cloud_price}</td>
                                    </tr>
                                </volist>
                                <empty name="inf['video_play_list']">
                                    <tr>
                                        <td colspan="5">没有内容...</td>
                                    </tr>
                                </empty>
                                <notempty name="inf['page']">
                                    <tr>
                                        <td colspan="5">
                                            <div class="page txt-center">
                                                {$inf.page}
                                            </div>
                                        </td>
                                    </tr>
                                </notempty>
                            </table>
                        </div>
                    </if>
            </div>
    </div>
</div>
<script>
    function goBack(){
        var agentID="{:I('get.agentID')}";
        var url="{:U('agentBalance')}"+'?id='+agentID;
        window.open(url,'_self');
    }
</script>